<?php

class Model_DbTable_ArtWork extends Zend_Db_Table
{

    protected $_name = 'art_work';

    protected $_rowClass = 'Model_Artwork';

	public function getMap() {
    	$map = array();
    	$all = $this->fetchAll();
    	foreach ($all as $item) {
    		$map[$item->id] = $item->name;
    	}
    	return $map;
    }
}

